﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SunRayEngine.RpgDevelopment
{
    public class QuestManager
    {
        private Dictionary<string, Quest> AllQuests;

        public Quest this[string questName]
        {
            get { return AllQuests[questName]; }
        }

        public QuestManager()
        {
            AllQuests = new Dictionary<string,Quest>();
        }

        public void AddQuest(Quest quest)// Add quests
        {
            AllQuests.Add(quest.questName, quest);
        }

        public string[] GetQuest()//Get quest
        {
            return AllQuests.Keys.ToArray();
        }

        public void AddPlayerQuests(string key, List<Quest> playerQuests)
        {
            playerQuests.Add(AllQuests[key]);
        }


    }
}
